#pragma once
#include <stdio.h>
#include <string>
#include <list>
using std::string;
using std::list;

enum SellType
{
	WHITE_SELL=0,
	BLUE_SELL,
	RED_SELL,
	YELLOW_SELL,
	GREEN_SELL,

	BLUE_BLOCK,
	RED_BLOCK,
	YELLOW_BLOCK,
	GREEN_BLOCK,

	LEFT_BLOCK,
	UP_BLOCK,
	RIGHT_BLOCK,
	DOWN_BLOCK,

	END_TYPE,
};
enum ShootType
{
	UP_SHOOT = 0,
	DOWN_SHOOT,
	RIGHT_SHOOT,
	LEFT_SHOOT,
	END_SHHOT,
};

typedef list<ShootType> SHOOTTYPE_LIST;
typedef list<SellType> SELLTYPE_LIST;
class MapLoader
{
private:
	int _fieldX, _fieldY;
	SHOOTTYPE_LIST _shootTypeList;
	SELLTYPE_LIST _sellTypeList;
public:
	MapLoader();
	~MapLoader(void);

	bool load(string fileName);
	SHOOTTYPE_LIST getShootTypeList(){return _shootTypeList;}
	SELLTYPE_LIST getSellTypeList(){return _sellTypeList;}
	int getFieldX(){return _fieldX;}
	int getFieldY(){return _fieldY;}
};
